//part1:C03:ex3.1.cpp -- sum of 50 to 100.
#include <iostream>

int main(void)
{
    using std::cout;
    using std::endl;
    int sum = 0;
    int i = 50;
    while (i <= 100)
    {
        sum += i;
        i++;
    }
    cout << "sum of 50 to 100" << sum << endl;
    return 0;
}
